#ifndef LOG_H
#define LOG_H

#include <QObject>
#include <qsqldatabase.h>

class Log: public QObject
{
    Q_OBJECT
public:
    Log(QObject *parent=nullptr);
    bool isTableExists(const QString &tableName);
    bool initLog();
    bool insertLog(QString name, QString speed, QString weight, QString temperature, QString ph, QString conductivity);
private:
    QSqlDatabase m_db;
};

#endif // LOG_H
